package com.hsjk.szwj.module.train.controller.app.vo.question;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * @author chenjiawei
 * @desc
 * @Date 2023/08/19 11:55
 **/
@Schema(description = "用户端 - 添加做试卷记录 Request VO")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AppMemberPaperRecordReqVO {

    @Schema(description = "车型", requiredMode = Schema.RequiredMode.REQUIRED, example = "")
    @NotNull(message = "车型不能为空")
    private Integer carType;

    @Schema(description = "科目", requiredMode = Schema.RequiredMode.REQUIRED, example = "")
    @NotNull(message = "科目不能为空")
    private Integer subject;

    @Schema(description = "试卷编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "")
    @NotNull(message = "试卷编号不能为空")
    private Long paperId;

    @Schema(description = "做题时长", requiredMode = Schema.RequiredMode.REQUIRED, example = "")
    @NotNull(message = "做题时长不能为空")
    private Integer duration;

    @Schema(description = "是否完成", requiredMode = Schema.RequiredMode.REQUIRED, example = "")
    @NotNull(message = "是否完成不能为空")
    private Boolean completed;

    @Schema(description = "是否通过", requiredMode = Schema.RequiredMode.REQUIRED, example = "")
    @NotNull(message = "是否通过不能为空")
    private Boolean passed;

    @Schema(description = "得分", requiredMode = Schema.RequiredMode.REQUIRED, example = "")
    @NotNull(message = "得分不能为空")
    private Integer score;
}
